Intersoft WebTextEditor Documentation
Customize Context Menu
Send Feedback
Intersoft WebTextEditor > WebTextEditor > Context Menu > Customize Context Menu

Glossary Item Box

Context Menu can be customized to include custom items or remove existing item. To customize context menu, items can be added or removed in OnEditorContextMenu client-side event.
JavaScript Copy ImageCopy Code
function WebTextEditor1_OnEditorContextMenu(controlId, menuObj)        
{            
   var items = menuObj.RootMenu.Items;                        
   if (items.GetNamedItem("mLookUp") == null)            
   {                
      items.Add(new WebMenuSeparatorItem());                
      items.Add(new WebMenuItem("mLookUp", "Look Up...", null, OnClick));            
   }        
}

In This Section

How-to: Add Item in Context Menu

©2013. All Rights Reserved.